package com.easytouch.core.utils;

import com.easytouch.core.listener.OnDownloadGoodsDatabaseListener;

public class DownloadGoodsDatabaseUtils {
    private static OnDownloadGoodsDatabaseListener downloadlistener;

    public static void setOnDownloadGoodsDatabaseListener(OnDownloadGoodsDatabaseListener listener) {
        downloadlistener = listener;
    }

    public static void sendOnDownloadOnStartListener() {
        if (downloadlistener != null) {
            downloadlistener.onDownloadStart();
        }
    }

    public static void sendOnDownOnEndListener() {
        if (downloadlistener != null) {
            downloadlistener.onDownloadEnd();
        }
    }

    public static void removeOnDownListener() {
        downloadlistener = null;
    }
}
